//
//  HomeFourCollectionViewCell.m
//  CommunitySupermarketProiect
//
//  Created by 吕惠卿 on 2017/10/11.
//  Copyright © 2017年 吕惠卿. All rights reserved.
//

#import "HomeFourCollectionViewCell.h"

@implementation HomeFourCollectionViewCell
-(id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self creatUI];
    }
    return self;
}
-(void)creatUI{
    _advImg = [[UIImageView alloc]init];
    [self addSubview:_advImg];
    [_advImg mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(self.contentView.mas_right).with.offset(0);
        make.left.equalTo(self.contentView.mas_left).with.offset(0);
        make.height.mas_equalTo(80);
        make.centerY.mas_equalTo(self);
    }];
}
@end
